// rollup.config.js
import json from 'rollup-plugin-json';
import { terser }  from 'rollup-plugin-json'
import nodeResolve from "@rollup/plugin-node-resolve";
import commonjs from '@rollup/plugin-commonjs' 
export default {
  input: 'src/main.js',
  output: [{
    file: 'bundle.js',
    format: 'esm',
    plugins: [ terser()]
    },
    {
        file: 'bundle.cjs.js',
        format: 'cjs'
    }
    ],
  plugins: [ json(), nodeResolve(), commonjs() ],
  extends:['vue']
};